part of 'sports_cubit.dart';

abstract class GymSportsState {}

class SportsInitial extends GymSportsState {}

class SportsLoading extends GymSportsState {}

class SportsError extends GymSportsState {}

class SportsDone extends GymSportsState {}

class SportsUpdate extends GymSportsState {}

class SelectModeUpdate extends GymSportsState {
  final bool mode;
  final Sport? sport;

  SelectModeUpdate({required this.mode, this.sport});
}

class SelectSport extends GymSportsState {
  final Sport sport;
  final bool isSelected;

  SelectSport({required this.sport, required this.isSelected});
}

class AddSportToGymLoading extends GymSportsState {
  final Sport sport;
  final Gym gym;

  AddSportToGymLoading({required this.sport, required this.gym});
}

class AddSportToGymError extends GymSportsState {
  final Sport sport;
  final Gym gym;
  final String massage;
  final int stateCode;

  AddSportToGymError({
    required this.sport,
    required this.massage,
    required this.stateCode,
    required this.gym,
  });
}

class AddSportToGymDone extends GymSportsState {
  final Sport sport;
  final Gym gym;
  final GymSport gymSport;

  AddSportToGymDone({
    required this.sport,
    required this.gym,
    required this.gymSport,
  });
}
